<?php 
$i1=$i2=$i3=$i4=$i5='';
	switch ($active)
	{
		case 'i2':
			$i2 = 'class="active"';
			break;
		case 'i3':
			$i3 = 'class="active"';
			break;
		case 'i4':
			$i4 = 'class="active"';
			break;
		case 'i5':
			$i5 = 'class="active"';
			break;
		case 'i6':
			$i6 = 'class="active"';
			break;
		default:
			$i1 = 'class="active"';
			break;
	}
?>
<nav>
	<ul class="menu">
	<li <?php echo $i1;?>><a href="<?php echo Yii::app()->createUrl('/site_frontend/');?>"><?php echo Yii::t('site','Home')?></a></li>
	<li><img src="<?php echo Yii::app()->theme->baseUrl;?>/images/adf.gif" /></li>
	<li <?php echo $i2;?>><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/pagex/', array('page_alias'=>'lien-he'));?>"><?php echo Yii::t('site','About Us');?></a></li>
	<li><img src="<?php echo Yii::app()->theme->baseUrl;?>/images/adf.gif" /></li>
	<li <?php echo $i3;?>><a href="#"><?php echo Yii::t('site','Services');?></a>
		<ul>
			<li><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/pagex/', array('page_alias'=>'thiet-ke-website'));?>"><?php echo Yii::t('site','Web Design')?></a></li>
			<li><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/pagex/', array('page_alias'=>'quang-ba-website-tren-google'));?>"><?php echo Yii::t('site','Google Adwords')?></a></li>
			<li><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/pagex/', array('page_alias'=>'dang-ky-ten-mien-va-hosting'));?>"><?php echo Yii::t('site','Domain & Hosting')?></a>
		<ul>
			<li><a href="#">monitoring</a></li>
			<li><a href="#">analysis</a></li>
		</ul>
	</li>
	</ul>
 	</li>
 	<li><img src="<?php echo Yii::app()->theme->baseUrl;?>/images/adf.gif" /></li>
	<li <?php echo $i4;?>><a href="<?php echo Yii::app()->createUrl('/site_shop/products/index');?>"><?php echo Yii::t('site','Projects');?></a>
	</li>
	<li><img src="<?php echo Yii::app()->theme->baseUrl;?>/images/adf.gif" /></li>
    <li <?php echo $i5;?>><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/pagex/', array('page_alias'=>'lien-he'));?>"><?php echo Yii::t('site','News');?></a></li>
    <li><img src="<?php echo Yii::app()->theme->baseUrl;?>/images/adf.gif" /></li>
    <li <?php echo $i6;?>><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/pagex/', array('page_alias'=>'lien-he'));?>"><?php echo Yii::t('site','Contact');?></a></li>
	</ul>
</nav>